text = "This form works with the Text Table Data Module to demonstrate how to use a custom database class. While the form appears to use a standard database, it is actually bypassing BDE to edit a text file through a custom query class. The entryfield uses a stan";
+ "dard dataLink and the button's call delete() and count() methods as if the rowset were working with a native BDE or SQL-Link rowset. The custom query contains implementations for the following rowset methods: beginAppend(), bookmark(), count(), delete(), f";
+ "irst(), goto(), last(), next() and save()."
borderStyle = 2
endwith
this.rowset = this.dmdtext.ref.textquery.rowset
// {Linked Method} form.buttoncount.onClick
function BUTTONCOUNT_onClick
local sCount
sCount = LTRIM( STR( this.form.rowset.count() ) )
MSGBOX("Total number of rows counted: " + sCount, ;